package com.vietnam.power.dao;

import java.util.List;

import com.vietnam.power.domain.FileSearchCriteria;
import com.vietnam.power.persitence.FileUpload;

/**
 * @author DinhCuong
 * 
 */
public interface FileDao {
	public FileUpload getFileById(int id);
	
	public List<FileUpload> getFilesByName(String fileName);
	
	public void saveFile(FileUpload f);
	
	public void deleteFile(FileUpload f);
	
	public void updateFile(FileUpload f);
	
	public long countFilesInGroup(String fileName);
	
	public List<FileUpload> searchFiles(FileSearchCriteria s);
	
	public List<FileUpload> getUnusedFiles();
}
